<template>
  <div>
      <!-- <Map /> -->
      <button @click="apiTest">接口测试</button>
      <button @click="apiTest2">接口测试2</button>
  </div>
</template>

<script setup>
import { ref, toRefs, toRef, reactive, computed } from 'vue'
import Map from "./components/map/index.vue";
import mittBus from "@/utils/mittBus"; // mitt
import OpenlayerBaseMap from "@/components/OpenlayerBaseMap/index.vue";
// import { queryGisList } from '@/api/common'
import { queryComplaintDelayOperationIsNeedOptimizeOrderId, getUserProfile } from '@/api/common'


const props = defineProps({
  /* message: {
    type: String,
    default: '',
    required: true
  } */
})

mittBus.on("mitttest", () => {
  console.log("取消测距111");

});

const test = ()=> {
  mittBus.emit("mitttest")
}
test()

const apiTest = () => {
  queryComplaintDelayOperationIsNeedOptimizeOrderId().then(res => {
    console.log(res)
  })
}

const apiTest2 = () => {
  getUserProfile().then(res => {
    console.log(res)
  })
}

</script>

<style lang="scss" scoped>
</style>